<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RaisingStudio.Data.Entities.Issue>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="IssueID">IssueID:</label>
                <%= Html.TextBox("IssueID", Model.IssueID, new { disabled = true })%>
                <%= Html.ValidationMessage("IssueID", "*") %>                
            </p>
            <p>
                <label for="Title">Title:</label>
                <%= Html.TextBox("Title", Model.Title) %>
                <%= Html.ValidationMessage("Title", "*") %>
            </p>
            <p>
                <label for="Owner">Owner:</label>
                <%= Html.TextBox("Owner", Model.Owner) %>
                <%= Html.ValidationMessage("Owner", "*") %>
            </p>
            <p>
                <label for="Progress">Progress:</label>
                <%= Html.TextBox("Progress", String.Format("{0:F}", Model.Progress)) %>
                <%= Html.ValidationMessage("Progress", "*") %>
            </p>
            <p>
                <label for="CreateTime">CreateTime:</label>
                <%= Html.TextBox("CreateTime", String.Format("{0:g}", Model.CreateTime)) %>
                <%= Html.ValidationMessage("CreateTime", "*") %>
            </p>
            <p>
                <label for="Locked">Locked:</label>
                <%= Html.CheckBox("Locked", Model.Locked)%>
                <%= Html.ValidationMessage("Locked", "*") %>
            </p>
            <p>
                <label for="Description">Description:</label>
                <%= Html.TextArea("Description", Model.Description) %>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

